import {
	http
} from '../httpIndex.js'

export default {
	// 获取班级id和名称 默认根班主任无关
	getClassIdAndNames(){
		return http.get(
			'app/Class/getIdAndNames'
		)
	},
	// 展示班级考勤列表 app/Class/getAppClassDeptAccDvByDeptId?classDeptId
	getClassInfo(classId) {
		return http.get(
			`app/Class/getClassInfoByClassId/${classId}`
		)
	},
	// 任课老师
	getAllCourseInstructorList() {
		return http.get(
			`app/user/getAllCourseInstructorList`
		)
	},

	// 所属部门
	getDictByType(classDept) {
		return http.get(
			`app/dict/detail/getDictByType?dictType=` + classDept
		)
	},

	// 获取班级考勤规则
	findAllAttendanceRules(classDept) {
		return http.get(
			`app/attendance/rules/findAllAttendanceRules`
		)
	},

	// 修开考勤规则
	UpdateClassInfo(data) {
		return http.post(
			`app/Class/UpdateClassInfo`, data
		)
	},

	// 获取考勤报表
	getAllClassAttendanceByClsTeachId(data) {
		return http.post(
			`app/Attence/getAllClassAttendanceByClsTeachId`, data
		)
	},

	// 获取详情人员
	getClassAttenceStuByCondition(data) {
		return http.post(
			`app/ClassAttence/getClassAttenceStuByCondition`, data
		)
	},
	// 审批
	processWorkFlow(data) {
		return http.post(
			`app/notReturned/processWorkFlow`, data
		)
	},

	// 查询pid
	workFlowInfo(data) {
		return http.post(
			`app/notReturned/workFlowInfo`, data
		)
	},

	// 提交学生请假
	createUpdateStuLeaves(data) {
		return http.post(
			`app/StudentLeave/createUpdateStuLeaves`, data
		)
	},

	// 确认通知
	updateNotice(data) {
		return http.post(
			`app/sdAttence/trackRecord/update`, data
		)
	},

	updateClassRepairUpload(data) {
		return http.post(
			`app/ClassRepair/updateClassRepairUpload`, data
		)
	},
}
